home *** CD-ROM | disk | FTP | other *** search
/ Pro Intralink 3.1 / Pro Intralink v3.1.iso / dsrc / templates / unix / u_f_intralink_start.tpl < prev    next >
Encoding:
Text File  |  2001-11-27  |  6.4 KB  |  222 lines

  1. // 23-Apr-98 $$1  TWH  Created 
  2. // 13-Jul-98 $$2  TWH  Chg license env var.
  3. // 01-Sep-98 $$3  TWH  Add PTC_APPMGR_DIR, fix feature env var, NLS_LANG support
  4. // 17-Oct-98 $$4  TWH  rm -nograb arg
  5. // 14-Oct-98 $$5  TWH  LC check more verbose
  6. // 23-Mar-99      TWH  add mips4 to elf2 switch
  7. // 22-Apr-99      TWH  Set ORA_NLS32 to oracle734 per echin
  8. // 05-May-99      JJE  Group Submission
  9. // 10-May-99 $$6  TWH  fix nlslang scripting
  10. // 17-Mar-00      TWH  Move to Oracle8 Ilink 3.0
  11. // 21-Mar-00 $$7  TWH  Comment out multiple luknfeel options
  12. // 18-Apr-00      TWH  Java changes
  13. // 19-Apr-00      TWH  Cmdline fixes
  14. // 26-Apr-00      TWH  Fix ORA_NLS33; fix cmd-type
  15. // 05-May-00 $$8  TWH  rm $mc in PTC_JRE paths
  16. // 18-May-00 $$9  TWH  drop inc pdm_proe.env
  17. // 13-Sep-00 $$10 TWH  tweaks & mdimpex
  18. // 01-Dec-00      TWH/JFU change CLASSPATH; Add JAVA_HOME
  19. // 01-Dec-00      TWH/JFU modify pro_comm_msg source
  20. // 01-Dec-00      TWH  FCS workarounds; PGL..., PTC_DOCS, PTC_HELP, XFILE..
  21. // 05-Dec-00      TWH  more of #14
  22. // 05-Dec-00 $$11 TWH  cancel above
  23. // 08-Jan-01 $$12 TWH  check set of PRO_TEMPLATES external
  24. // 12-Feb-01 $$13 TWH  Add ptc_startup check
  25. // 19-Mar-01 $$14 TWH  Set INTRALINK_DIR
  26. // 09-Apr-01 $$15 TWH  Fix #12; Add rsexplorer check
  27. // 11-Apr-01 $$16 TWH  Chg to -Xmx256m -ss8m per yuri
  28. // 20-Apr-01 $$17 TWH  Hack in sgi/jap block attempt
  29. // 24-Apr-01 $$18 TWH  fix #17
  30. // 30-Apr-01 $$19 TWH  drop -oss4m per fung
  31. // 27-Jun-01 $$20 TWH  Undo workarounds PTC_DOCS, PTC_HELP #11 853155
  32. // 06-Aug-01 $$21 TWH  LC_NUMERIC chk 893079
  33. // 19-Sep-01      TWH  Undo #17 (sgi/jap hack)
  34. // 19-Sep-01 $$22 TWH  Undo mips4 to elf2 switch (head.inc handles now)
  35. // 12-Nov-01 $$23 TWH  Set ORA_NLS33 to ORACLE817
  36. #include:head.inc
  37.  
  38. // set for use by proe and others started by INTRALINK
  39. setenv INTRALINK_DIR $prodir
  40.  
  41. // argument check...
  42. set java_appl = "com.ptc.intralink.client.Intralink"
  43. set luknfeel="Metal"
  44. if( $#argv > 0 ) then
  45.   if( "$1" == "dist" ) then
  46.     set java_appl = "com.ptc.intralink.distribution.Distribution"
  47.     shift
  48.   endif
  49. //  if ( "$1" != "Windows" && "$1" != "Motif" && "$1" != "Metal") then
  50. //    echo "Usage: $0 [<java_appl>] [<look and feel>] [-- <application args>]"
  51. //    echo "           <java_appl>  :      dist for distribution, no arg for intralink"
  52. //    echo "           <look n feel>:      Windows, Motif, Metal"
  53. //    echo "           <application args>: any application arguments"
  54. //    exit 1
  55. //  else
  56. //    set luknfeel="$1"
  57. //  endif
  58.   if ( "$1" == "-help" || "$1" == "-h" ) then
  59.     echo "Usage: $0 [<java_appl>] [-- <application args>]"
  60.     echo "           <java_appl>  :      dist for distribution, no arg for intralink"
  61.     echo "           <application args>: any application arguments"
  62.   endif
  63. endif
  64.  
  65. //if ($?luknfeel) then
  66. //  set luknfeel="Metal"
  67. //endif
  68.  
  69. foreach i ($*)
  70.   if ("$i" != "--") then
  71.     shift
  72.   else
  73.     shift
  74.     break
  75.   endif
  76. end
  77.  
  78. set intralink_params = "$*"
  79.  
  80. #include:shlib.inc
  81.  
  82. if ($mc == alpha_unix) then
  83.   if ($?LD_LIBRARY_PATH) then
  84.     setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$prodir/$mc/obj
  85.   else
  86.     setenv LD_LIBRARY_PATH $prodir/$mc/obj
  87.   endif
  88. endif
  89. if ($mc == ibm_rs6000) then
  90.       setenv LIBPATH ${LIBPATH}:$prodir/$mc/stublib
  91. endif
  92.  
  93. #include:ora8_shlib.inc
  94.  
  95. setenv PTC_JRE __PTC_JRE__
  96. setenv JAVA_HOME __PTC_JRE__
  97.  
  98. #include:jre_shlib.inc
  99.  
  100. set path=(${PTC_JRE}/bin $prodir/$mc/lib $prodir/$mc/obj $path)
  101.  
  102. # ptc-cmdtype: ilink
  103.  
  104. // CLASSPATH setup
  105. if( ! $?CLASSPATH ) then
  106.   setenv CLASSPATH .
  107. endif
  108. setenv CLASSPATH ${prodir}/java/jar/swingall.jar:${prodir}/java/lib/Intralink.jar:${prodir}/java/lib/Distribution.jar:${prodir}/java/lib/pvc.jar:${CLASSPATH}
  109.  
  110. #includeenv:PROE_START:proe_start.env
  111. if ($?PROE_START) then
  112.   setenv PDM_PROE $PROE_START
  113.   setenv PDM_PROE_PATH $PDM_PROE
  114. endif
  115.  
  116. #includeenv:PTCNMSPORT:ptcnmsport.env
  117.  
  118. #includeenv:PTC_APPMGR:appmgr.env
  119. #includeenv:PTC_APPMGR_DIR:appmgrdir.env 
  120. #includeenv:PROE_DIR:mdimpex.env
  121.  
  122. if ($?PROE_DIR) then
  123.   setenv PRO_COMM_MSG_EXE $PROE_DIR/$proe_mc/obj/pro_comm_msg
  124. else
  125.   setenv PRO_COMM_MSG_EXE $prodir/$mc/obj/pro_comm_msg
  126. endif
  127.  
  128. #includeenv:LM_LICENSE_FILE:lmlic.env
  129. setenv ILINK_CLIENT_FEATURE_NAME "__ILINK_FEATURE_NAME__"
  130.  
  131. setenv PDM_ORA_APPL intralink
  132. setenv PDM_ORACLE_SERVER intralink
  133. setenv TNS_ADMIN $prodir
  134. setenv ORA_NLS33 $prodir/$mc/obj/ORACLE817/ocommon/nls/admin/data
  135.  
  136. if ( $?LC_NUMERIC || $?LC_ALL ) then
  137.   if ($?LC_COLLATE) then
  138.     setenv PTC_COLLATE $LC_COLLATE
  139.   endif
  140. # LC_COLLATE effects how "tr" performs
  141.   setenv LC_COLLATE C
  142.   set resetnls=false
  143.   if ( $?LC_NUMERIC ) then
  144.     if ( $LC_NUMERIC == "C" ) then
  145.       set resetnls=true
  146.     else if ( `echo $LC_NUMERIC | cut -c3` == '_' ) then
  147.       if (`echo $LC_NUMERIC |cut -c1-2 | tr '[A-Z]' '[a-z]'` == "en") then
  148.         set resetnls=true
  149.       endif
  150.     endif
  151.   endif
  152.   if ( $?LC_ALL ) then
  153.     if ( $LC_ALL == "C") then
  154.       set resetnls=true
  155.     else if ($?LC_NUMERIC ) then
  156.       if ( `echo $LC_NUMERIC | cut -c3` == '_' ) then
  157.         if (`echo $LC_NUMERIC |cut -c1-2 | tr '[A-Z]' '[a-z]'` == "en") then
  158.           set resetnls=true
  159.         endif
  160.       endif
  161.     endif
  162.   endif
  163.   if ( "$resetnls" == "true" ) then
  164.     setenv NLS_LANG AMERICAN_AMERICA.WE8ISO8859P1
  165.     set i18n = 0
  166.     if ( `echo $LANG | cut -c3` == '_' ) set i18n = 1
  167.     if ($i18n) then
  168.       set runlang = `echo $LANG | cut -c1-2 | tr '[A-Z]' '[a-z]'`
  169.     else
  170.       set runlang=$LANG
  171.     endif
  172.     switch ($runlang)
  173.       # csh in japanese does not like cascading case statements... 
  174.       # so don't change.
  175.       case "japan" :
  176.           setenv NLS_LANG AMERICAN_AMERICA.JA16EUC
  177.         breaksw
  178.       case "japanese" :
  179.           setenv NLS_LANG AMERICAN_AMERICA.JA16EUC
  180.         breaksw
  181.       case "japanese.euc" :
  182.           setenv NLS_LANG AMERICAN_AMERICA.JA16EUC
  183.         breaksw
  184.       case "ja" :
  185.           setenv NLS_LANG AMERICAN_AMERICA.JA16EUC
  186.         breaksw
  187.     endsw
  188.   endif
  189.   if ($?PTC_COLLATE) then
  190.     setenv LC_COLLATE $PTC_COLLATE
  191.   endif
  192. endif
  193.  
  194. set native=""
  195. set format=""
  196.  
  197. if ($mc == sgi_elf2) then
  198.   set format="-o32"
  199. endif
  200. if ($mc == sgi_mips4) then
  201.   set format="-n32"
  202.   set native="-native"
  203.   setenv PGL_DEBUG_GRAPHICS 8
  204. endif
  205.  
  206. if (! $?PRO_TEMPLATES) then
  207.     setenv PRO_TEMPLATES $prodir/pdm/templates
  208. endif
  209. setenv EPC_DISABLE TRUE
  210. if ($?XFILESEARCHPATH) then
  211.     setenv XFILESEARCHPATH_SAVE $XFILESEARCHPATH
  212. endif
  213.  
  214. if (-e $prodir/rsexplorer.ini) then
  215.   setenv RSDB_INI_FILE $prodir/rsexplorer.ini
  216. endif
  217.  
  218. #include:ptc_startup.inc
  219.  
  220. __JVM_CMD__ $native $format -Xmx256m -ss8m $java_appl -l $luknfeel $intralink_params >& .proi.log
  221.  
  222.